// 导入vue
import Vue from 'vue'

import 'vant/lib/index.less';
/* 用户页 */
import {
  Button,
  NavBar,
  Field,
  Form,
  Toast,
  Tabbar,
  TabbarItem,
  Image as VanImage,
  Tag,
  Col,
  Row,
  Icon,
  Cell,
  CellGroup,
  Dialog,
  Grid,
  GridItem,
  progress,
  Collapse,
  CollapseItem,
} from 'vant'
Vue.use(Button)
Vue.use(progress)
Vue.use(Collapse)
Vue.use(CollapseItem)
Vue.use(NavBar)
Vue.use(Field)
Vue.use(Form)
Vue.use(Toast)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(VanImage)
Vue.use(Tag)
Vue.use(Col)
Vue.use(Row)
Vue.use(Icon)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(Dialog)
Vue.use(Grid)
Vue.use(GridItem)

// 我的页面
import {
  Popup,
  Picker,
  Uploader,
  Area
} from 'vant'
Vue.use(Popup)
Vue.use(Picker)
Vue.use(Uploader)
Vue.use(Area)


// 刷题页面
import {
  DropdownMenu,
  DropdownItem,
  Tab,
  Tabs,
  Circle,
  IndexBar,
  IndexAnchor
} from 'vant'

Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Circle);
Vue.use(IndexBar);
Vue.use(IndexAnchor);


// 公司页面
import {
  Swipe,
  SwipeItem,
  Search,
  Card,
  PullRefresh,
  List,
  Lazyload,
  Switch
} from 'vant';

Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Search)
Vue.use(Card)
Vue.use(PullRefresh)
Vue.use(List)
Vue.use(Lazyload)
Vue.use(Switch)
